﻿using Common.Result;
using Model.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public interface IUserService
    {
        Task<UserRes> GetUserByIdAsync(int id);
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <returns></returns>
        Task<PageInfo> GetUserPageInfoAsync(int pageNum,int pageSize,string? username);
        Task<bool> UpdateUserByIdAsync(UserReq userReq);
        Task<bool> AddUserAsync(UserReq userReq);
        Task<bool> DeleteUserByIdAsync(int id);
    }
}
